package com.aipolice.aipolice.pojo;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "report_", schema = "aipolice", catalog = "")
public class Report {
    private int id;
    private Integer uid;
    private String uname;
    private Integer tel;
    private String decribe;
    private Integer state;
    private String level;
    private Integer del;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "uid")
    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    @Basic
    @Column(name = "uname")
    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    @Basic
    @Column(name = "tel")
    public Integer getTel() {
        return tel;
    }

    public void setTel(Integer tel) {
        this.tel = tel;
    }

    @Basic
    @Column(name = "decribe")
    public String getDecribe() {
        return decribe;
    }

    public void setDecribe(String decribe) {
        this.decribe = decribe;
    }

    @Basic
    @Column(name = "state")
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Basic
    @Column(name = "level")
    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    @Basic
    @Column(name = "del")
    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Report report = (Report) o;
        return id == report.id &&
                Objects.equals(uid, report.uid) &&
                Objects.equals(uname, report.uname) &&
                Objects.equals(tel, report.tel) &&
                Objects.equals(decribe, report.decribe) &&
                Objects.equals(state, report.state) &&
                Objects.equals(level, report.level) &&
                Objects.equals(del, report.del);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, uid, uname, tel, decribe, state, level, del);
    }
}
